package com.example.studentdemo.entity;

import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Notification {
    private Long id;
    private String title;
    private String content;
    private String recipientType; // 接收者类型：ALL, TEACHER, STUDENT, ADMIN
    private Long recipientId;     // 接收者ID，如果recipientType为ALL则为null
    private Boolean isRead;       // 是否已读
    private LocalDateTime createTime;
    private LocalDateTime readTime; // 阅读时间

    public Notification(String title, String content, String recipientType, Long recipientId) {
    }
}